package com.fastloan.mgt.application.approve.model;

import com.kawins.base.baseabs.BaseModel;

import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Id;
import javax.persistence.Table;
import java.math.BigDecimal;
import java.util.Date;

/**
 * @author admins
 *         createTime 2017/11/09
 */
@Table(name = "ZY_APPLICATION_APPROVE")
public class ApplicationApprove extends BaseModel<String> {

    /**
     * 进件审批id
     */
    @Id
    @GeneratedValue(strategy = GenerationType.IDENTITY)
    private String appApproveId;
    /**
     * 审批模板id
     */
    private String templateId;
    /**
     * 审批用户id
     */
    private String approveUserId;
    /**
     * 审批金额
     */
    private BigDecimal approveAmount;
    /**
     * 审批利率
     */
    private BigDecimal approveRate;
    /**
     * 备注
     */
    private String approveComment;
    /**
     * 审批状态(0 待审批, 1 通过, 2 拒绝
     */
    private Integer approveStatus;
    /**
     * 创建时间
     */
    private Date createTime;

    public String getAppApproveId() {
        return this.appApproveId;
    }

    public ApplicationApprove setAppApproveId(String appApproveId) {
        this.appApproveId = appApproveId;
        return this;
    }

    public String getTemplateId() {
        return templateId;
    }

    public void setTemplateId(String templateId) {
        this.templateId = templateId;
    }

    public String getApproveUserId() {
        return this.approveUserId;
    }

    public ApplicationApprove setApproveUserId(String approveUserId) {
        this.approveUserId = approveUserId;
        return this;
    }

    public BigDecimal getApproveAmount() {
        return this.approveAmount;
    }

    public ApplicationApprove setApproveAmount(BigDecimal approveAmount) {
        this.approveAmount = approveAmount;
        return this;
    }

    public BigDecimal getApproveRate() {
        return this.approveRate;
    }

    public ApplicationApprove setApproveRate(BigDecimal approveRate) {
        this.approveRate = approveRate;
        return this;
    }

    public String getApproveComment() {
        return this.approveComment;
    }

    public ApplicationApprove setApproveComment(String approveComment) {
        this.approveComment = approveComment;
        return this;
    }

    public Integer getApproveStatus() {
        return this.approveStatus;
    }

    public ApplicationApprove setApproveStatus(Integer approveStatus) {
        this.approveStatus = approveStatus;
        return this;
    }

    public Date getCreateTime() {
        return this.createTime;
    }

    public ApplicationApprove setCreateTime(Date createTime) {
        this.createTime = createTime;
        return this;
    }
}
